package com.lzw.tool.tree;


import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ResourceNode<T> {

    public static final ResourceNode EMPTY_NODE = new ResourceNode();

    private ResourceNode() {
    }

    public ResourceNode(T date) {
        this.data = date;
    }

    public ResourceNode(T date, ResourceNode<T> parent) {
        this.data = date;
        this.parentNode = parent;
    }

    private ResourceNode<T> parentNode;
    private T data;
}